home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Macademic for Students & Teachers
/
Macademic for Students and Teachers (Quantum Leap)(1992).iso
/
Writing
/
Story Writer
/
card_3413.txt
< prev
next >
Wrap
Text File
|
1987-12-28
|
7KB
|
278 lines
-- card: 3413 from stack: in
-- bmap block id: 12397
-- flags: 0000
-- background id: 2747
-- name: write story
----- HyperTalk script -----
on openCard
tabkey
end openCard
-- part 2 (field)
-- low flags: 00
-- high flags: 4002
-- rect: left=127 top=163 right=326 bottom=496
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 192
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: sentences
-- part 3 (button)
-- low flags: 00
-- high flags: 8003
-- rect: left=12 top=306 right=328 bottom=112
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Quit
----- HyperTalk script -----
on mouseUp
answer "Quit HyperCard or go Home?" with "Cancel" or "Quit" or "Go Home"
if it is "Go Home" then
go home
exit mouseUp
end if
if it is "cancel" then exit mouseUp
else visual effect zoom in
domenu "Quit Hypercard"
end mouseUp
-- part 4 (button)
-- low flags: 00
-- high flags: 8003
-- rect: left=12 top=164 right=186 bottom=112
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Next Writer
----- HyperTalk script -----
on mouseUp
put the number of words in card field "sentences" into count
if count<10 then
beep 2
put "You need to write at least some more word(s)." into warn
put (10 - count) into left
put left into word seven of warn
answer warn
exit mouseUp
end if
answer "You're finished with your part of the story?" with "Instructions" or "No" or "Yes"
if it is "Instructions" then
push card
visual effect iris open
go to card "G"
exit mouseUp
end if
if it is "no" then exit mouseUp
put (count - 9) into phrase
put word phrase to count of card field "sentences" into card field "last words"
put "... " after card field "last words"
put card field "sentences" & space after card field "final" of card "show story"
put empty into card field "sentences"
tabKey
end mouseUp
-- part 5 (button)
-- low flags: 00
-- high flags: 8003
-- rect: left=12 top=216 right=238 bottom=112
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Instructions
----- HyperTalk script -----
on mouseUp
push card
visual effect iris open
go to card "Instructions"
end mouseUp
-- part 6 (field)
-- low flags: 01
-- high flags: 0002
-- rect: left=127 top=26 right=51 bottom=495
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 18
-- style flags: 0
-- line height: 24
-- part name: title
-- part 7 (field)
-- low flags: 01
-- high flags: 0002
-- rect: left=127 top=54 right=73 bottom=495
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: character
-- part 8 (field)
-- low flags: 01
-- high flags: 0002
-- rect: left=127 top=76 right=111 bottom=496
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: theme
-- part 9 (field)
-- low flags: 01
-- high flags: 0002
-- rect: left=127 top=126 right=160 bottom=496
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 192
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: last words
-- part 10 (button)
-- low flags: 00
-- high flags: 8003
-- rect: left=12 top=242 right=264 bottom=112
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: New Story
----- HyperTalk script -----
on mouseUp
beep 2
answer "End this story and begin a new story?" with "Yes" or "No"
If it is "yes" then
get empty
put it into card field "title"
put it into card field "character"
put it into card field "theme"
put it into card field "last words"
put it into card field "sentences"
put it into card field "title" of card "title"
put it into card field "character" of card "title"
put it into card field "theme" of card "title"
visual scroll down
go to card "title"
end if
end mouseUp
-- part 11 (button)
-- low flags: 00
-- high flags: 8003
-- rect: left=12 top=190 right=212 bottom=112
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Show Finished
----- HyperTalk script -----
on mouseUp
get card field "last words"
if it is empty then
get card field "sentences"
if it is empty then
beep 2
answer "You've got to write something first!"
exit mouseUp
end if
end if
answer "Is this story completed?" with "Instructions" or "No" or "Yes"
if it is "Instructions" then
push card
visual effect iris open
go to card "H"
exit mouseUp
end if
if it is "no" then exit mouseUp
get card field "sentences"
if it is not empty then put card field "sentences" after card field "final" of card "show story"
visual effect barn door close slow to black
put empty into card field "title"
put empty into card field "character"
put empty into card field "theme"
put empty into card field "last words"
put empty into card field "sentences"
visual effect barn door open slow
go to card "show story"
end mouseUp
-- part 17 (button)
-- low flags: 00
-- high flags: 8003
-- rect: left=12 top=268 right=290 bottom=112
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Read A Story
----- HyperTalk script -----
on mouseUp
beep 2
answer "Wait! Do you want to finish this story first?" with "No thanks" or "Yes, please"
if it is "No thanks" then
get empty
put it into card field "title"
put it into card field "character"
put it into card field "theme"
put it into card field "last words"
put it into card field "sentences"
answer "Which story would you like to read?" with "Story 1" or "Story 2" or "Story 3"
go to card it
end if
end mouseUp